﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Noria.Net.Chaos.Net
{
    [TestClass]
    public class HexTest
    {
        [TestMethod]
        public void Generate()
        {
            var s = "M81B78531";
            foreach (var c in s)
            {
                Console.Write("{0:X2} ", (int)c);
            }
        }

        [TestMethod]
        public void GenerateHashcode()
        {
            var s = "10.58.114.66";
            Console.WriteLine(s.GetHashCode().ToString("X8")); // -2118679247

        }
    }
}
